package com.ceair.flight.refund.dto.ota;


import com.ceair.muservice.common.dto.BaseReq;

public class RefundAttachmentReq extends BaseReq {
	private long attachmentId;
	private String name;
	private String orderNo;
	private byte[] content;
	private long passportId;
	private long applyId;

	public long getAttachmentId() {
		return attachmentId;
	}

	public void setAttachmentId(long attachmentId) {
		this.attachmentId = attachmentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public long getPassportId() {
		return passportId;
	}

	public void setPassportId(long passportId) {
		this.passportId = passportId;
	}

	public long getApplyId() {
		return applyId;
	}

	public void setApplyId(long applyId) {
		this.applyId = applyId;
	}
	
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public RefundAttachment toRefundAttachment() {
		RefundAttachment r = new RefundAttachment();
		r.setName(getName());
		r.setContent(getContent());
		return r;
	}
	
	public Attachment toAttachment() {
		Attachment r = new Attachment();
		r.setName(getName());
		r.setContent(getContent());
		return r;
	}
}
